![]() |
PBCreateFileUnicodeSync |
||||
Header: | Files.h | Carbon status: | Supported | |
Creates a new file in the specified directory.
OSErr PBCreateFileUnicodeSync ( FSRefParam *paramBlock );
A pointer to a parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function.
On input, the directory where the file is to be created.
On input, the number of Unicode characters in the file's name.
On input, a pointer to the Unicode name of the new file.
On input, which catalog info fields to set. This field is optional; you may set it to NULL.
On input, the values for catalog info fields to set. This field is optional; you may set it to NULL.
On output, a pointer to the FSRef for the new file. This field is optional; you may set it to NULL.
On output, a pointer to the FSSpec for the new file. This field is optional; you may set it to NULL.
You may optionally set catalog information for the file using the whichInfo and catalogInfo parameters; this is equivalent to calling FSSetCatalogInfo after creating the file. If possible, you should set the textEncodingHint in the catalogInfo.
Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)